import request from '@/utils/request'

// 查询渔获记录列表
export function listCatchrecord(query) {
  return request({
    url: '/info/catchrecord/list',
    method: 'get',
    params: query
  })
}

// 查询渔获记录详细
export function getCatchrecord(id) {
  return request({
    url: '/info/catchrecord/' + id,
    method: 'get'
  })
}

// 新增渔获记录
export function addCatchrecord(data) {
  return request({
    url: '/info/catchrecord',
    method: 'post',
    data: data
  })
}

// 修改渔获记录
export function updateCatchrecord(data) {
  return request({
    url: '/info/catchrecord',
    method: 'put',
    data: data
  })
}

// 删除渔获记录
export function delCatchrecord(id) {
  return request({
    url: '/info/catchrecord/' + id,
    method: 'delete'
  })
}
